import { postAxios, getAxios, postDownloadAxios } from '@/lib/http';

export const gearboxSpeedApi = {
    // 添加变速箱速比参数 @author wuhq
    addGearboxSpeed: (data) => {
        return postAxios('/gearboxSpeed/add', data);
    },
    // 分页查询变速箱速比参数 @author wuhq
    queryGearboxSpeed: (data) => {
        return postAxios('/gearboxSpeed/page/query', data);
    },
    // 批量删除变速箱速比参数 @author wuhq
    batchDeleteGearboxSpeed: (idList) => {
        return postAxios('/gearboxSpeed/deleteByIds', idList);
    },
    // 修改变速箱速比参数  @author wuhq
    updateGearboxSpeed: (data) => {
        return postAxios('/gearboxSpeed/update',data);
    },
    // 导出全部  @author wuhq
    exportAll:(data)=>{
        return postDownloadAxios('/gearboxSpeed/export/all',data);
    },
    // 批量导出  @author wuhq
    batchExport: (idList) => {
        return postDownloadAxios('/gearboxSpeed/export/batch', idList);
    },
    getByGearboxId: (id) => {
      return getAxios(`/gearboxSpeed/getByGearboxId/${id}`);
    },
};
